package com.ylr.base.common.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-07-27 17:23:17
 * className: KeyValue 键-值映射类
 * version: 1.0
 * description:
 */
@Getter
@Setter
@AllArgsConstructor
public final class KeyValue<K, V> {

    public static final KeyValue<Object, Object> nullValue = new KeyValue<>(null, null);

    /**
     * 名字
     */
    private K key;

    /**
     * 值
     */
    private V value;

    @Override
    public String toString() {
        return "KeyValue{" +
                "key=" + key +
                ", value=" + value +
                '}';
    }
}
